package com.example.book.in.entity;

import com.example.book.base.BaseEntity;

import java.io.Serializable;

import java.util.Date;

/**
 * @author hcj
 * @date 2019-10-27 22:24:17
 */
public class BookInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分类信息id
     */
    private String categoryId;
    /**
     * 书籍名称
     */
    private String bookName;
    /**
     * 作者名称
     */
    private String bookAuthor;
    /**
     * 书籍简介
     */
    private String bookIntroduction;
    /**
     * 书籍封面
     */
    private String bookCover;
    /**
     * 书籍状态：连载、完本  0连载、1完本 2停更
     */
    private String bookStatus;
    /**
     * 章节更新时间
     */
    private Date chapterUpdateTime;
    /**
     * 最新章节名称
     */
    private String lastChapter;
    /**
     * 数据状态
     */
    private String status;

    /**
     * 分类名称
     */
    private String categoryName;

    /**
     * 是否热门 设置热门状态 1 热门 其他值不是
     */
    private String isPopularSearches;

    /**
     * 自定义查询参数  模糊匹配用的
     */
    private String searchTxt;

    /**
     * 自定义字段用来控制 API 接口查询的条件
     */
    private String flag;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public BookInfo() {
    }


    public BookInfo(String categoryId, String bookName, String bookAuthor) {
        this.categoryId = categoryId;
        this.bookAuthor = bookAuthor;
        this.bookName = bookName;
    }

    public String getSearchTxt() {
        return searchTxt;
    }

    public void setSearchTxt(String searchTxt) {
        this.searchTxt = searchTxt;
    }

    public String getIsPopularSearches() {
        return isPopularSearches;
    }

    public void setIsPopularSearches(String isPopularSearches) {
        this.isPopularSearches = isPopularSearches;
    }

    public BookInfo(String status) {
        this.status = status;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryId() {
        return this.categoryId;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookName() {
        return this.bookName;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getBookAuthor() {
        return this.bookAuthor;
    }

    public void setBookIntroduction(String bookIntroduction) {
        this.bookIntroduction = bookIntroduction;
    }

    public String getBookIntroduction() {
        return this.bookIntroduction;
    }

    public void setBookCover(String bookCover) {
        this.bookCover = bookCover;
    }

    public String getBookCover() {
        return this.bookCover;
    }

    public void setBookStatus(String bookStatus) {
        this.bookStatus = bookStatus;
    }

    public String getBookStatus() {
        return this.bookStatus;
    }

    public void setChapterUpdateTime(Date chapterUpdateTime) {
        this.chapterUpdateTime = chapterUpdateTime;
    }

    public Date getChapterUpdateTime() {
        return this.chapterUpdateTime;
    }

    public void setLastChapter(String lastChapter) {
        this.lastChapter = lastChapter;
    }

    public String getLastChapter() {
        return this.lastChapter;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return this.status;
    }
}